

<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@include file="/pageRc/common/common.jsp"%>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
	<meta name="format-detection" content="telephone=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="mobile-web-app-capable" content="yes">
	<meta name="msapplication-tap-highlight" content="no">
	<script type="text/javascript" src="<%=commonPath %>/pageRc/js/jquery-1.9.1.min.js"></script> 
 　	<link rel="stylesheet" href="<%=commonPath %>/pageRc/layui/css/layui.css" media="all">
 　　　<script type="text/javascript" src="<%=commonPath %>/pageRc/common/utils.js"></script>
	<script type="text/javascript" src="<%=commonPath %>/pageRc/common/msgTool.js"></script>
	<script type="text/javascript" src="<%=commonPath %>/pageRc/layui/layui.js"></script>　
	<title>联信科技报工页面</title> 
	<script type="text/javascript">　
	var path = "<%=commonPath%>";
	var msg =new msgTool(); 　
 
	</script>
</head>

 <body style="layui-main">
	 <div class="header">
	  <div class="main">
	    <div class="nav">
	      <blockquote class="layui-elem-quote">hi, ${userBean.userName} ，你好！</blockquote>   
	    </div> 
	  </div>
	</div>
             <form  id="createMsgForm" name="createMsgForm"  class="layui-form"  style="padding:1.5rem"  >
               <input type="hidden" id="userNo" name="userNo" value="${userBean.userNo}">
               <div class="layui-form-item">
                 <label class="layui-form-label">需求编号</label>
	              <div class="layui-input-block"><!-- lay-search -->
	              		                  <input id="needId"  name = "needId"  value="${needBean.rouid}"  type="hidden">
	              	
	                  <input id="needNo"  name = "needNo" value="${needBean.needNo}" readOnly="true" class="layui-input" disabled>
 	              </div>
              </div>  
               <div class="layui-form-item">
                <label  class="layui-form-label">需求名称</label>
                <div class="layui-input-block">
                    <input type="text" id="needName" style="width:100%" name="needName"  value="${needBean.needName}" readOnly="true" placeholder="需求名称"   name="userName" required lay-verify="required" autocomplete="off" class="layui-input" disabled>
                </div>
              </div>
               <div class="layui-form-item">
                <label  class="layui-form-label">日期</label>
                <div class="layui-input-block">
							<input class="layui-input" id="happenDate"  name="happenDate"
													onclick="layui.laydate({elem: this, istime: true, format: 'YYYYMMDD'})"
													placeholder="日期"   value="${sysDate}"   required lay-verify="required" autocomplete="off" >
							                </div>
              </div>
                <div class="layui-form-item">
                 <label class="layui-form-label">阶段<span style="color:red">*</span></label>
	              <div class="layui-input-block"> 
	                  <select  name="stage" lay-filter="searChBindStat2" required>
	                    <option value="">选择阶段</option>
	                    <option value="01">需求分析</option>
	                    <option value="02">需求评审</option>
	                    <option value="03">技术评审</option>
	                    <option value="04">开发联调</option>
	                    <option value="05">SIT测试</option>
	                    <option value="06">UAT测试</option>
	                    <option value="07">上线</option>
	                    <option value="08">回顾总结</option>
	                  </select>
	              </div>
              </div>  
              <div class="layui-form-item">
                <label  class="layui-form-label">消耗工时 <span style="color:red">*</span></label> 
                <div class="layui-input-block">
                  <input type="number" id="needUseTime" name="needUseTime" value="8"  placeholder="按小时填写"   required lay-verify="required" autocomplete="off" class="layui-input">
                 </div>
              </div>  
              <div class="layui-form-item">
                <label  class="layui-form-label">备注</label>
                <div class="layui-input-block">
                  <textarea id="remark" name="remark" class="layui-textarea" placeholder="可以填写项目事物处理详情"></textarea>
                 </div>
              </div>  
              <div class="layui-form-item">
	              <div class="layui-input-block">
	              	 <button class="layui-btn" lay-filter="submitData" lay-submit>提交</button>
	              	 <a href="<%=commonPath%>/page/base/${needBean.rouid}/searchHistoryInfor.do" class="layui-btn" target="_blank">查看历史记录</a>
   	              </div>
              </div>  
          </form> 
<script> 
  layui.use(
		[ 'form', 'layer', 'laytpl', 'laypage','laydate' ],
		 function(){
			var form = layui.form(),
			layer = layui.layer;
			form.on('submit(submitData)',function(data){
				var field = data.field;  
				var stages = field.stage;
 				if(stages==''){
					layer.alert("请选择阶段")
					return false;
				}
 					msg.sendMsg("/page/base/regNeedInfor.do",field,function(data){ //新加的微信登录入口
 						layer.alert("提交成功！");
 						location.href ="<%=commonPath %>/page/base/dologin.do";
 					});
 				return false;
			});
			    
	       
	
});
</script>
</body>
</html>
 
 